package com.server.impl;

import java.util.List;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.XuanzejiajiaoMapper;
import com.entity.Xuanzejiajiao;
import com.server.XuanzejiajiaoServer;
@Service
public class XuanzejiajiaoServerImpi implements XuanzejiajiaoServer {
   @Resource
   private XuanzejiajiaoMapper gdao;
	@Override
	public int add(Xuanzejiajiao po) {
		return gdao.insert(po);
	}

	@Override
	public int update(Xuanzejiajiao po) {
		return gdao.updateByPrimaryKeySelective(po);
	}

	
	
	@Override
	public int delete(int id) {
		return gdao.deleteByPrimaryKey(id);
	}

	@Override
	public List<Xuanzejiajiao> getAll(Map<String, Object> map) {
		return gdao.getAll(map);
	}
	
	public List<Xuanzejiajiao> getsyxuanzejiajiao1(Map<String, Object> map) {
		return gdao.getsyxuanzejiajiao1(map);
	}
	public List<Xuanzejiajiao> getsyxuanzejiajiao2(Map<String, Object> map) {
		return gdao.getsyxuanzejiajiao2(map);
	}
	public List<Xuanzejiajiao> getsyxuanzejiajiao3(Map<String, Object> map) {
		return gdao.getsyxuanzejiajiao3(map);
	}
	
	@Override
	public Xuanzejiajiao quchongXuanzejiajiao(Map<String, Object> account) {
		return gdao.quchongXuanzejiajiao(account);
	}

	@Override
	public List<Xuanzejiajiao> getByPage(Map<String, Object> map) {
		return gdao.getByPage(map);
	}

	@Override
	public int getCount(Map<String, Object> map) {
		return gdao.getCount(map);
	}

	@Override
	public List<Xuanzejiajiao> select(Map<String, Object> map) {
		return gdao.select(map);
	}

	@Override
	public Xuanzejiajiao getById(int id) {
		return gdao.selectByPrimaryKey(id);
	}

}

